﻿@using EcBlog.Extensions
@model IEnumerable<EcBlog.Models.Tag>

@foreach (var tag in Model)
{
   <p></p>
   <div><h1><a href="@Url.GetTagSlugUrl(tag.TagSlug)">@tag.TagName</a></h1></div>
   <hr/>
   foreach (var page in tag.Pages)
   {
       <div><a href="@Url.GetSlugUrl(page.Published, page.Slug)">@page.Title</a> [ <a href="@Url.GetArchiveUrl(page.Published.Year, page.Published.Month)">@page.Published.ToString("dd/MM/yyyy") </a>  ] </div>
   }
} 
